import request from '@/utils/request'

export function uploadShpFile(data) {
  return request({
    url: '/survey/basic/upload.shpfile',
    method: 'post',
    data: data
  })
}

export function saveShpFile(data) {
  return request({
    url: '/survey/basic/save.layer',
    method: 'post',
    params: data
  })
}

export function addProjectUnit(data) {
  return request({
    url: '/survey/basic/prounit',
    method: 'post',
    data: data
  })
}

export function getUnitByPro(data) {
  return request({
    url: '/survey/basic/unit.projectid',
    method: 'get',
    params: data
  })
}

export function addProjectLayer(data) {
  return request({
    url: '/survey/basic/prolayer',
    method: 'post',
    data: data
  })
}

export function addProjectCollectLayer(data) {
  return request({
    url: '/survey/basic/create.collect.layer',
    method: 'post',
    params: data
  })
}




